package com.ruoyi.constant.v3;

/**
 * @Author 史家浩
 * @Description 任务核查状态分页
 * @Date  2022/12/21 19:20
 * @Param
 * @return
 **/

public enum RwpageHcOptionV3Enum {

    RW_ALL("all", "全部任务"),
    RW_YSB("ysb", "已上报"),
    RW_WSB("wsb", "未上报"),
    RW_YSH("ysh", "已审核"),
    RW_WSH("wsh", "未审核");




    private String code;
    private String desc;

    RwpageHcOptionV3Enum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    /**
     * 校验option是否存在
     * @param option
     * @return
     */
    public static boolean validateOption(String option) {
        for (RwpageHcOptionV3Enum value : RwpageHcOptionV3Enum.values()) {
            if (value.getCode().equals(option)) {
               return true;
            }
        }
        return false;
    }
}
